{extend name="layouts/main" /}
{block name="content"}
<div class="layui-body" style="top: 0px;left: 0px;">
	<!-- 内容主体区域 -->
	<div class="layui-main" style="width: auto;margin: 7px 15px;">
		<blockquote class="layui-elem-quote layui-text">
			<i class="fa fa-home"></i>
			<span class="layui-breadcrumb">
				<a><cite>系统主页</cite></a>
				<a href="{:url('configuration')}">网站配置</a>
				<a href="{:url('configuration',['id'=>$id])}">{$meta_title}</a>
			</span>
		</blockquote>
	</div>
	{notempty name="configTypeRes"}
	<div class="layui-fluid" style="position: relative;margin: 0 auto;padding: 7px;padding-top: 0px;">
		<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
			<ul class="layui-tab-title">
				{volist name="configTypeRes" id="vo"}
				<li {if condition="$id eq $vo['id']"} class="layui-this" {/if}>
					<a href="{:url('configuration',array('id'=>$vo['id']))}">{$vo.title}</a>
				</li>
				{/volist}
			</ul>
			<div class="layui-tab-content layui-setting">
				<div class="layui-tab-item  layui-show">
					<form class="layui-form layui-form-pane form-horizontal" action="{:url('')}" method="post" enctype="multipart/form-data">
					{notempty name="list"}
						{volist name="list" id="field"}
						{if condition="$field['status'] ==1"}
						{php} echo \think\Response::create('admin@layouts/inputitem', 'view')->assign('field', $field)->getContent(); {/php}
						{/if}
						{/volist}
						<!-- 提交保存 -->
						<div class="layui-form-item">
							<div class="layui-input-block" style="border: 0px;">
								<!-- <button class="layui-btn ajax-post2" type="submit" target-form="form-horizontal" lay-submit="" lay-filter="submit">提交保存</button> -->
								<button class="layui-btn ajax-post2" type="button" target-form="form-horizontal" lay-submit="" lay-filter="submit">提交保存</button>
							</div>
						</div>
					{else /}
						该配置类型暂无配置
					{/notempty}
					</form>
				</div>
			</div>
		</div>
	</div>
	{/notempty}
</div>
{/block}